sentence = "Python is a powerful programming language so we should to study"

words_list = sentence.split()  # 以空格切割得到每个单词形成的列表

dicts = {item: len(item) for item in words_list}
print("dicts=", dicts)
